package com.github.shiqiyue.app.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.github.shiqiyue.app.api.sapi.req.user.UserPageReq;
import com.github.shiqiyue.app.modules.sys.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wenyao.wu
 * @since 2018-10-11
 */
public interface UserMapper extends BaseMapper<User> {

    /***
     * 用户列表-分页
     * @param page
     * @param query
     * @return
     */
    IPage<User> userPage(Page page, @Param("query") UserPageReq query);
}
